#include<iostream>
#include<unistd.h>
#include"Tcpserver.hpp"

void Usage()
{
    std::cout<<"Please Enter:\n"<<"\tseverip  severport";
}

int main(int argc,char* argv[])
{
    if(argc!=3)
    {
        Usage();
        exit(-1);
    }    
    std::string ip=argv[1];
    uint16_t port=std::stoi(argv[2]);
    TcpServer ts(ip,port);
    ts.InitServer();
    ts.Start();
    return 0;
}